package org.hxd.admin.order.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.hxd.pojo.Orderitem;
import org.hxd.pojo.Orders;
import org.hxd.utils.PageModel;

import java.util.List;

public interface AdminOrderDao {

    int findOrderTjcount(Orders orders);

    List<Orders> findOrderTj(@Param("orders") Orders orders,@Param("pageModel") PageModel pageModel);

    @Delete("delete from orders where id = #{id}")
    int deleteOrderByib(String id);

    Orders findOrderById(String id);

    List<Orderitem> findOrderitemById(String id);
}
